package com.dfd.mango.admin.controller;

import com.dfd.mango.admin.service.SysUserService;
import com.dfd.mango.core.http.HttpResult;
import com.dfd.mango.core.page.PageRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController("/hello")
public class HelloController {
    @Autowired
    private SysUserService userService;


    @PostMapping("/findPage")
    public HttpResult findPage(@RequestBody PageRequest request) {
        return HttpResult.ok(userService.findPage(request));
    }

}
